package net.zjitc.service;

import java.util.List;
import net.zjitc.pojo.Evaluate;
import net.zjitc.pojo.Product;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/26 15:44
 * @description:
 */
public interface ProductService {

  List<Product> findAllProduct();

  List<Product> findHot();

  List<Product> findNew();

  List<Product> findPageByCid(Integer cid);

  List<Product> findPageByCsid(Integer csid);

  Product findByPid(Integer pid);

  List<Evaluate> findEvaluate(Integer pid);

  Integer editProduct(Product product);

  Integer addEvaluate(Evaluate evaluate);

  Integer deleteProduct(Integer pid);

  void addProduct(Product product);

  void updateProduct(Product product);
}
